package com.linkage.educloud.ah.mvp.contract;

import com.linkage.educloud.ah.bean.AppClassify;
import com.linkage.educloud.ah.bean.HomeResBean;
import com.linkage.educloud.ah.bean.ResClassifyMeta;
import com.linkage.educloud.ah.bean.StudyTypeBean;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;

import java.util.List;

/**
 * Created by Mr'Tang on 2018/12/17.
 */

public interface IAppContract {
    interface IView extends IBasicView {
        void initAppClassify(List<AppClassify> list);

        void initRadioButton(List<ResClassifyMeta> classifyMetas);

        void initSubjectTab(List<StudyTypeBean> studyTypes);

        void initReslist(String title, List<HomeResBean> list);

        void stopRefresh();
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {
        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void getAppClassify();

        public abstract void getResClassify();

        public abstract void getRecommends(int subjectid, int gradeid, int page);
    }

    interface IModel extends ICommonModel {

    }
}
